//
//  RaStarSafetyVerificationManager.h
//  RaStarSafetyVerificationFramework
//
//  Created by RaStar on 2021/1/18.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
    RaStarSafetyCaptchaStateClose,
    RaStarSafetyCaptchaStateSuccess,
} RaStarSafetyVerificationState;

@interface RaStarSafetyCaptchaManager : NSObject

+ (instancetype)manager;

/// 设置基本参数
/// @param appid App ID
/// @param appkey App Key
/// @param cchID 渠道ID
- (void)setAppID:(int)appid AppKey:(NSString *)appkey ChannelID:(int)cchID;

/// 显示验证码
/// @param action 动作
/// @param state 返回验证状态
- (void)showSafetyVerficationView:(NSString *)action State:(void(^)(RaStarSafetyVerificationState state,NSString * _Nullable token))state;

@end

NS_ASSUME_NONNULL_END
